-- GENERATED SPELL FOR [Gundrak Bat Rider] --


function spell0_29332(pUnit, Event) --@Firebomb,n/a--
pUnit:FullCastSpellOnTarget(54684,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29332', 1500, 1)
end

function Sorts_29332(pUnit, Event)
local choix_sorts_29332 = math.random(0, 0)
if choix_sorts_29332 == 0 then
pUnit:RegisterEvent('spell0_29332', 1, 1)
end
end

function mob29332_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29332', math.random(1500, 3000), 1)
end

function mob29332_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29332_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29332_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29332, 1, 'mob29332_Action')
RegisterUnitEvent(29332, 2, 'mob29332_Leave')
RegisterUnitEvent(29332, 3, 'mob29332_Kill')
RegisterUnitEvent(29332, 4, 'mob29332_Die')
